package com.lin.forum.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;
@Data
@Schema(description = "帖⼦表")
public class Article {
    @Schema(description = "帖⼦编号，主键，⾃增")
    private Long id;
    @Schema(description = "关联板块编号，⾮空")
    private Long boardId;
    @Schema(description = "发帖⼈，⾮空，关联⽤⼾编号")
    private Long userId;
    @Schema(description = "标题，⾮空，最⼤⻓度100个字符")
    private String title;
    @Schema(description = "帖⼦正⽂，⾮空")
    private Integer visitCount;
    @Schema(description = "访问量，默认0")
    private Integer replyCount;
    @Schema(description = "回复数据，默认0")
    private Integer likeCount;
    @Schema(description = "点赞数，默认0")
    private Byte state;
    @Schema(description = "状态 0正常 1 禁⽤，默认0")
    private Byte deleteState;
    @Schema(description = "是否删除 0 否 1 是，默认0")
    private Date createTime;
    @Schema(description = "创建时间，自动记录插入时间")
    private Date updateTime;
    @Schema(description = "修改时间，自动更新")
    private String content;
}